#ifndef CREATEMATTERDIALOG_H
#define CREATEMATTERDIALOG_H

#include <QDialog>
#include <QDateTime>

#include "label.h"

namespace Ui {
class CreateMatterDialog;
}

class QMenu;
class QKeyEvent;
class MeatterData;

class CreateMatterDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit CreateMatterDialog(QWidget *parent = 0);
    ~CreateMatterDialog();

//    QMenu* CreateEatMenus();
    void SetData(QString itemText, bool isHidden);//此函数被`showItemDetailMessage`和`revampItemMatter`两个函数所使用，区别为：有些控件需要隐藏
    void initAllLabel();
protected:
    bool eventFilter(QObject *obj, QEvent *event);
    void hideEvent(QHideEvent *);

private slots:
//    void getGoods();
    void getGoods(QString text);
    void createPainTextContent();
    void on_SaveOkPushButton_clicked();
    void on_goodsLineEdit_textChanged(QString arg1);

private:
    Ui::CreateMatterDialog *ui;
    QString spendGoods;
    MeatterData *meatterData;
    QList<Label *> labelList;

};

#endif // CREATEMATTERDIALOG_H
